﻿using ServerListerner.Connections;
using ServerListerner.Helper;

using System;
using System.Drawing;
using System.Linq;
using System.Linq.Expressions;
using System.Net;
using System.Net.Sockets;
using System.Reflection;

namespace ServerListerner
{
    public interface IUDPServer:IDisposable
    {

        bool StartListen(Action<IUDPConnection> action);
        void ClientSend(EndPoint Point, byte[] bytes);
        void ClientSend(IPAddress iP, int port, byte[] bytes);
        void ClientSend(string iP, int port, byte[] bytes);
        bool StopListen();
    }
}